#!/usr/bin/env python

import re
import sys

c = int(sys.argv[1]) # number of clients
f = open('vector_fs.log')

def larger_than(x,y):
	result = False
	cnt = 0
	for i in range(len(x)):
		if x[i]>=y[i]:
			cnt+=1
	if cnt == len(x):
		result = True
	return result	

vectors=[]

for l in f.readlines():
	v=re.split('\s+',re.split('\n',l)[0])[0-c:]
	vectors.append(map(int, v))
for i in range(len(vectors)):
	for j in range(i+1,len(vectors)):
		if larger_than(vectors[i],vectors[j]):
			print vectors[i], 'is larger than', vectors[j], ':error'
			sys.exit(1)
			
print "No error"		
				

